

#ifndef _SHELL_RESVERSION_MESSAGE_H_
#define _SHELL_RESVERSION_MESSAGE_H_

#include "Message.h"
#include "Beans.h"
using namespace std;

class ResVersionMessage : public Message
{
	public:
	ResVersionMessage();
	~ResVersionMessage();
	void reset();
	ResVersionMessage* clone();
	static const int _ID;
	//服务器当前版本(资源)
	int16 firstVersion;
	//服务器当前版本(客户端包)
	int16 clientVersion;
	//包下载地址
	std::string downloadUrl;
	
	bool read_from(ByteBuf& buf);
    bool write_to(ByteBuf& buf);
    int getId();
};

#endif
